console.log(__filename);
console.log(__dirname);

console.time('timeLabel');
console.log('hi %s', 'tom');
console.info('hi %d', 123);
console.warn('hi');
console.error('hi');
console.trace('hi');
console.assert(1==2, 'not equal');

var t = setTimeout(function() {console.log('hi');}, 100);

// 
clearTimeout(t);

console.timeEnd('timeLabel');

// peroid print never stop
setInterval(function(){console.log('tick');}, 1000);

// process object is system level api
process.on('exit', function(code) {
	console.log('exit code',code);
});

// std out
process.stdout.write('hello world');

// argument
process.argv.forEach(function(val,index,array) {
	console.log(index, '->', val);
});

// https://www.runoob.com/nodejs/nodejs-global-object.html
console.log(process.execPath);
console.log(process.platform);
console.log(process.cwd());
console.log(process.version);
console.log(process.memoryUsage());
